﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{
    public enum LoginLogType
    {
        /// <summary>
        /// 会员
        /// </summary>
        User=1,
        /// <summary>
        /// 管理员
        /// </summary>
        Admin=2,
    }

    public static class LoginLogTypeEx
    {
        public static string GetName(this LoginLogType type)
        {
            switch (type)
            { 
                case LoginLogType.User:
                    return "会员";
                case LoginLogType.Admin:
                    return "管理员";
                default:
                    return type.ToString();
            }
        }
    }
}
